package com.ruoyi.wms.domain;

import java.math.BigDecimal;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.core.annotation.Excel;
import com.ruoyi.common.core.web.domain.BaseEntity;

/**
 * 换算对象 wms_measuring_unit_conversion
 * 
 * @author ruoyi
 * @date 2022-02-28
 */
public class WmsMeasuringUnitConversion extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键 */
    @Excel(name = "主键")
    private String mucUuid;

    /** 物料id */
    @Excel(name = "物料id")
    private String fkItemUuid;

    /** 基本计量单位 */
    @Excel(name = "基本计量单位")
    private String wmsMeasuringUnitBasic;

    /** 换算计量单位 */
    @Excel(name = "换算计量单位")
    private String wmsMeasuringUnitConversion;

    private String wmsMeasuringUnit;

    /** 换算率 */
    @Excel(name = "换算率")
    private BigDecimal conversionRate;

    /** 状态（正常、停用，字典表） */
    @Excel(name = "状态", readConverterExp = "正=常、停用，字典表")
    private String sysNormalDisable;

    /** 单据标题 */
    @Excel(name = "单据标题")
    private String docTitle;

    /** 单据编号 */
    @Excel(name = "单据编号")
    private String docNum;

    /** 单据时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "单据时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date docDt;

    /** 备注 */
    @Excel(name = "备注")
    private String docNote;

    /** 经办人ID（用户表ID） */
    @Excel(name = "经办人ID", readConverterExp = "用=户表ID")
    private Long fkAttentionUserId;

    /** 审核人（用户表ID） */
    @Excel(name = "审核人", readConverterExp = "用=户表ID")
    private Long fkConfirmUserId;

    /** 审核时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "审核时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date confirmDt;

    /** 审核状态（字典表） */
    @Excel(name = "审核状态", readConverterExp = "字=典表")
    private String oaDictConfirmStatus;

    /** 审核意见 */
    @Excel(name = "审核意见")
    private String confirmNote;

    /** 是否结束 */
    @Excel(name = "是否结束")
    private String sysYesNoDone;

    /**经办人*/
    @Excel(name = "经办人")
    private String attentionUserName;

    public String getWmsMeasuringUnit() {
        return wmsMeasuringUnit;
    }

    public void setWmsMeasuringUnit(String wmsMeasuringUnit) {
        this.wmsMeasuringUnit = wmsMeasuringUnit;
    }

    public String getAttentionUserName() {
        return attentionUserName;
    }

    public void setAttentionUserName(String attentionUserName) {
        this.attentionUserName = attentionUserName;
    }

    public void setMucUuid(String mucUuid)
    {
        this.mucUuid = mucUuid;
    }

    public String getMucUuid() 
    {
        return mucUuid;
    }
    public void setFkItemUuid(String fkItemUuid) 
    {
        this.fkItemUuid = fkItemUuid;
    }

    public String getFkItemUuid() 
    {
        return fkItemUuid;
    }

    public void setWmsMeasuringUnitBasic(String wmsMeasuringUnitBasic) 
    {
        this.wmsMeasuringUnitBasic = wmsMeasuringUnitBasic;
    }

    public String getWmsMeasuringUnitBasic() 
    {
        return wmsMeasuringUnitBasic;
    }

    public void setWmsMeasuringUnitConversion(String wmsMeasuringUnitConversion) 
    {
        this.wmsMeasuringUnitConversion = wmsMeasuringUnitConversion;
    }

    public String getWmsMeasuringUnitConversion() 
    {
        return wmsMeasuringUnitConversion;
    }

    public void setConversionRate(BigDecimal conversionRate) 
    {
        this.conversionRate = conversionRate;
    }

    public BigDecimal getConversionRate() 
    {
        return conversionRate;
    }


    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("mucUuid", getMucUuid())
            .append("fkItemUuid", getFkItemUuid())
            .append("wmsMeasuringUnitBasic", getWmsMeasuringUnitBasic())
            .append("wmsMeasuringUnitConversion", getWmsMeasuringUnitConversion())
            .append("conversionRate", getConversionRate())
            .append("sysNormalDisable", getSysNormalDisable())
            .append("docTitle", getDocTitle())
            .append("docNum", getDocNum())
            .append("docDt", getDocDt())
            .append("docNote", getDocNote())
            .append("fkAttentionUserId", getFkAttentionUserId())
            .append("fkConfirmUserId", getFkConfirmUserId())
            .append("confirmDt", getConfirmDt())
            .append("oaDictConfirmStatus", getOaDictConfirmStatus())
            .append("confirmNote", getConfirmNote())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .append("sysYesNoDone", getSysYesNoDone())
            .toString();
    }
}
